package com.san.metadata.service;

import java.util.List;
import java.util.Map;

import com.san.base.service.BaseService;
import com.san.common.utils.PageUtils;
import com.san.common.utils.Query;
import com.san.metadata.domain.DataSourceDO;

/**
 * 数据源管理服务类
 * 
 * @author xiangyz
 *
 */
public interface DataSourceService extends BaseService {
	
	/**
	 * 根据数据源编码获取对象
	 * @param sourceCode
	 * @return
	 */
	DataSourceDO getByCode(String sourceCode) throws Exception;

	/**
	 * 获取所有数据源
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<DataSourceDO> getAllSource() throws Exception;
	
	/**
	 * 根据条件查询数据源
	 * @param condition
	 * @return
	 * @throws Exception
	 */
	public List<DataSourceDO> findSource(Map<String,Object> condition) throws Exception;

	/**
	 * 查询数据源
	 * 
	 * @return
	 * @throws Exception
	 */
	public PageUtils findListSource(Query query) throws Exception;

}
